// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_REPAIR_ORDER
// * CreateDate    : 2011-12-14 00:24:05
// * Creater       : CodeSmith
// * LastChangeDate: 2011-12-14 00:24:05
// * LastChanger   : 2011-12-14 00:24:05
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class RepRepairOrderEntity : EntityBase
    {
        public RepRepairOrderTable TableSchema
        {
            get
            {
                return RepRepairOrderTable.Current;
            }
        }

        public RepRepairOrderEntity()
        {

        }

        public RepRepairOrderEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.RepOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_ID"]));
            this.RepApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["REP_APPLICATION_ID"]));
            this.RepOrderCode = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_CODE"]));
            this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
            this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
        }

        public RepRepairOrderEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.RepOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_ID"]));
            this.RepApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["REP_APPLICATION_ID"]));
            this.RepOrderCode = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_CODE"]));
            this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
            this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepRepairOrderTable.Current;
            }
        }

        #region Perporty List
        public string RepOrderId
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_REP_ORDER_ID)); }
            set { SetData(RepRepairOrderTable.C_REP_ORDER_ID, value); }
        }

        public string RepApplicationId
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_REP_APPLICATION_ID)); }
            set { SetData(RepRepairOrderTable.C_REP_APPLICATION_ID, value); }
        }

        public string RepOrderCode
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_REP_ORDER_CODE)); }
            set { SetData(RepRepairOrderTable.C_REP_ORDER_CODE, value); }
        }

        public string Status
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_STATUS)); }
            set { SetData(RepRepairOrderTable.C_STATUS, value); }
        }

        public DateTime CreateDate
        {
            get { return Convert.ToDateTime(GetData(RepRepairOrderTable.C_CREATE_DATE)); }
            set { SetData(RepRepairOrderTable.C_CREATE_DATE, value); }
        }

        #endregion
    }


}

